import VRouter from "vue-router";
import index from "../src/view/index.vue";
import brief from "../src/view/brief";
import legal from "../src/view/legal";
import excellentCase from "../src/view/excellentCase";
import contact from "../src/view/contact";
import news from "../src/view/news";
import xq from "../src/view/details";
import cooperate from "../src/view/cooperate";
import give from "../src/view/give";
const router = new VRouter({
    routes: [
        //配置路由的路径

        {
            path: "/",
            component: index,
            children: [{
                //地址为空时跳转home页面
                path: "",
                redired: "/index",
            }, ],
        },
        //关于我们
        {
            name: "brief",
            path: "/brief",
            component: brief,
        },
        //法务业务
        {
            name: "legal",
            path: "/legal",
            component: legal,
        },
        //优秀案例
        {
            name: "excellentCase",
            path: "/excellentCase",
            component: excellentCase,
        },
        //联系我们
        {
            name: "contact",
            path: "/contact",
            component: contact,
        },
        //新闻资讯
        {
            name: "news",
            path: "/news",
            component: news,
        },
        //资讯详情
        {
            name: "xq",
            path: "/xq",
            component: xq,
        },
        //合作伙伴
        {
            name: "cooperate",
            path: "/cooperate",
            component: cooperate,
        },
        //服务内容
        {
            name: "give",
            path: "/give",
            component: give,
        },
    ],
});
export default router;